package com.jianbing.north.service;

import java.util.List;

import com.jianbing.north.domain.NorthQues;
import com.jianbing.north.domain.NorthQuesP3DTO;
import com.jianbing.north.domain.NorthQuesStem;

/**
 * 题干Service接口
 * 
 * @author ruoyi
 * @date 2024-06-20
 */
public interface INorthQuesStemService 
{
    /**
     * 查询题干
     * 
     * @param id 题干主键
     * @return 题干
     */
    public NorthQuesStem selectNorthQuesStemById(Long id);

    /**
     * 查询题干列表
     * 
     * @param northQuesStem 题干
     * @return 题干集合
     */
    public List<NorthQuesStem> selectNorthQuesStemList(NorthQuesStem northQuesStem);

    /**
     * 新增题干
     * 
     * @param northQuesStem 题干
     * @return 结果
     */
    public int insertNorthQuesStem(NorthQuesStem northQuesStem);

    /**
     * 修改题干
     * 
     * @param northQuesStem 题干
     * @return 结果
     */
    public int updateNorthQuesStem(NorthQuesStem northQuesStem);

    /**
     * 批量删除题干
     * 
     * @param ids 需要删除的题干主键集合
     * @return 结果
     */
    public int deleteNorthQuesStemByIds(Long[] ids);

    /**
     * 删除题干信息
     * 
     * @param id 题干主键
     * @return 结果
     */
    public int deleteNorthQuesStemById(Long id);

    /**
     * 获取用户题目
     *
 * @param userId
 * @param part
 * @param difficulty
     * @return java.lang.String
     * @author zheng
     * @create 2024/6/21
     **/

    List<NorthQues> selectNorthQuesByUserIdAndPartAndDifficulty(Long userId, Long part, Long difficulty);

    NorthQuesP3DTO selectP3QuesByUserIdAndDifficulty(Long userId, Long difficulty);

    String selestQuesByDialogueId(Long dialogueId);
}
